package com.bs.manager04.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author 小姚
 * @pakeageName:com.bs.manager04.entity
 * @ClassName:BaseEntity
 * @Descirption:
 * @data 2022/12/17 15:08
 */
@Data
public class BaseEntity implements Serializable {

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private String createTime;

    @ApiModelProperty("创建人")
    private String createBy;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    @ApiModelProperty("修改时间")
    private String updateBy;

    @ApiModelProperty("乐观锁")
    @Version
    private Integer version;

    @ApiModelProperty("是否删除 0 未删除 1 已删除")
    @TableLogic(value = "0",delval = "1")
    private Integer deleted;

    @ApiModelProperty("备注")
    private String remark;
}
